package com.yuandengta.yomall.product.feign;

import com.yuandengta.common.to.SkuHasStockTO;
import com.yuandengta.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Ware 仓储服务远程接口 {@link WareFeignService}
 *
 * @author Kevin
 * @email: 178676392@qq.com
 */
@FeignClient("yomall-ware")
public interface WareFeignService {

    /**
     * 查询sku是否有库存
     * @param skuIds
     * @return
     */
    @PostMapping("/ware/waresku/hasstock")
    List<SkuHasStockTO> getSkuHasStock(@RequestBody List<Long> skuIds);
}
